<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>请求</title>
</head>
<body>
<script>
  var xhr = new XMLHttpRequest()
  xhr.open('GET', 'http://localhost:4000/func1')
  xhr.send()
  xhr.onload=function (){
    console.log(JSON.parse(xhr.responseText))
  }
</script>
</body>
</html>
